<script setup>
import { inject } from 'vue';


const childCount = inject('count')
const changeCount = inject('changeCount')
</script>

<template>
  <div class="child-page">child -- {{ childCount }}
    <button @click="changeCount">改祖宗的数据</button>
  </div>
</template>

<style scoped>

.child-page {
  width: 200px;
  height: 200px;
  padding: 20px;
  border: 1px solid #000;
}
</style>
